<?php

namespace App\Models\SystemManagement;

use Illuminate\Database\Eloquent\Model;

class DepartmentEmployee extends Model
{
    protected $table = 'department_employees';
    protected $primaryKey = 'id';

    protected $fillable = ['department_id','employee_id'];

    protected $hidden = ['updated_at','created_at'];

    public function employees(){
        return $this->belongsTo(Employee::class,'employee_id');
    }
}
